home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C++ / Applications / Muddweller 1.2 / source code / Main / Globals.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-18  |  4.0 KB  |  169 lines  |  [TEXT/MPS ]

  1. /* Globals - Contains declarations of global nature                           */
  2.  
  3. #ifndef __GLOBALS__
  4. #define __GLOBALS__
  5.  
  6. #if qDebug
  7. #include <stdio.h>
  8. #include <iostream.h>
  9. #endif
  10.  
  11.  
  12. const void *kDummyLink = (const void *) -1;
  13.  
  14. const unsigned char chBell = 7;
  15. const unsigned char chLineFeed = 10;
  16.  
  17. const short puFont = 1002;
  18.  
  19.  
  20. // ---------- File Types
  21.  
  22. const unsigned long kSignature = ' %|g';
  23. const unsigned long kFileType = 'MUD ';
  24.  
  25. // ---------- Alert and dialog IDs
  26.  
  27. const short phGetDirID = 1000;
  28. const short phCmdErrID = 1001;
  29. const short phNoCommID = 1002;
  30. const short phNoToolsID = 1003;
  31. const short phPurgedID = 1004;
  32. const short phS7GetDirID = 1005;
  33. const short phConvertID = 1006;
  34. const short phOpenLogID = 1007;
  35. const short phS7OpenLogID = 1008;
  36. const short phUnavailID = 1009;
  37. const short phNoMTPDirID = 1010;
  38.  
  39. // ---------- View Resource IDs
  40.  
  41. const short kMUDWindID = 1000;
  42. const short kPrefsID = 1001;
  43. const short kCommID = 1002;
  44. const short kConfigTCPID = 1003;
  45. const short kSetupID = 1004;
  46. const short kUploadID = 1005;
  47. const short kDownloadID = 1006;
  48. const short kUpdateID = 1007;
  49. const short kCmdScrlID = 1008;
  50. const short kMacrosID = 1009;
  51. const short kTypeKeyID = 1010;
  52. const short kPasswordID = 1011;
  53.  
  54. // ---------- Menu items and internal commands
  55.  
  56. const short cConfigure = 1001;
  57. const short cPrefs = 1002;
  58. const short cConnect = 1003;
  59. const short cBreak = 1004;
  60. const short cComm = 1005;
  61. const short cInterrupt = 1006;
  62. const short cUpdate = 1007;
  63. const short cUpdateAll = 1008;
  64. const short cDownload = 1009;
  65. const short cSetup = 1010;
  66. const short cSendFile = 1011;
  67. const short cUseCTB = 1012;
  68. const short cUpload = 1013;
  69. const short cLogFile = 1014;
  70. const short cMacros = 1015;
  71.  
  72. const short cReturnKey = 2000;
  73. const short cUpKey = 2001;
  74. const short cDownKey = 2002;
  75.  
  76.  
  77. // ---------- String resources
  78.  
  79. const short kMUDStrings = 1002;
  80. const short kmsConnect = 1;
  81. const short kmsDisconnect = 2;
  82. const short kmsTCPSetup = 3;
  83. const short kmsToolSetup = 4;
  84. const short kmsUpdate = 5;
  85. const short kmsEd = 6;
  86. const short kmsWrite = 7;
  87. const short kmsDelete = 8;
  88. const short kmsAppend = 9;
  89. const short kmsStop = 10;
  90. const short kmsQuit = 11;
  91. const short kmsEdPrompt = 12;
  92. const short kmsPrompt = 13;
  93. const short kmsFirst = 14;
  94. const short kmsNext = 15;
  95. const short kmsAgain = 16;
  96. const short kmsFirstBlk = 17;
  97. const short kmsNextBlk = 18;
  98. const short kmsAgainBlk = 19;
  99. const short kmsUnrecognized = 20;
  100. const short kmsCreator = 21;
  101. const short kmsHost = 22;
  102. const short kmsOpenLog = 23;
  103. const short kmsCloseLog = 24;
  104. const short kmsLogName = 25;
  105. const short kmsSaveLog = 26;
  106. const short kmsShift = 27;
  107. const short kmsOption = 28;
  108. const short kmsControl = 29;
  109. const short kmsDEL = 30;
  110. const short kmsClear = 31;
  111. const short kmsEscape = 32;
  112. const short kmsF1 = 33;
  113. const short kmsF2 = 34;
  114. const short kmsF3 = 35;
  115. const short kmsF4 = 36;
  116. const short kmsF5 = 37;
  117. const short kmsF6 = 38;
  118. const short kmsF7 = 39;
  119. const short kmsF8 = 40;
  120. const short kmsF9 = 41;
  121. const short kmsF10 = 42;
  122. const short kmsF11 = 43;
  123. const short kmsF12 = 44;
  124. const short kmsF13 = 45;
  125. const short kmsF14 = 46;
  126. const short kmsF15 = 47;
  127. const short kmsFwdDel = 48;
  128. const short kmsOff = 49;
  129.  
  130. const short kKeyStrings = 1003;
  131. const short kCmdStrings = 1004;
  132.  
  133. // ---------- Errors
  134.  
  135. const short errNoTools = -25001;
  136. const short errInitCM = -25002;
  137. const short errDocFormat = -25003;
  138. const short errNetFail = -25004;
  139. const short errProtocol = -25005;
  140. const short errNetUnreach = -25006;
  141. const short errHostUnreach = -25007;
  142. const short errProtUnreach = -25008;
  143. const short errPortUnreach = -25009;
  144. const short errCMGeneric = -25010;
  145. const short errCMRejected = -25011;
  146. const short errCMFailed = -25012;
  147. const short errCMTimeOut = -25013;
  148. const short errCMNotOpen = -25014;
  149. const short errCMNotClosed = -25015;
  150. const short errCMNoRequest = -25016;
  151. const short errCMNotSup = -25017;
  152. const short errCMNoTools = -25018;
  153. const short errOpenTimeout = -25019;
  154.  
  155. // ---------- Global variables
  156.  
  157. short gTCPRef;
  158. short gDefVRefNum;
  159. long gDefDirID;
  160.  
  161. Boolean gCTBAvailable;
  162. Boolean gCTBToolsFound;
  163. Boolean gTCPAvailable;
  164.  
  165. Boolean gDisableMenus;
  166. Boolean gStop;
  167.  
  168. #endif
  169.